// 薪酬管理-个人所得税
import serveUrl from '@/config_xc/serverAddress'; // 接口域名列表
import axios from '@/config_xc/http'; // 导入http中创建的axios实例
const individualTax = {

  /**
   * @description 获取个人所得税列表
   * @param {*} params 
   * @returns {Promise}
   */
  GetIndividualIncomeView(params) {
    return axios.get(`${serveUrl.cs}/IndividualIncome/GetIndividualIncomeView`, { params });
  },

  /**
   * @description 人员信息表下载
   * @param {*} params 
   * @returns {Promise}
   */
  UplodUsersFile(params) {
    return axios.post(`${serveUrl.cs}/IndividualIncome/UplodUsersFile?Year=${params.Year}&Month=${params.Month}&WageIds=${params.WageIds}`);
  },
  
  /**
   * @description 正常工资薪金申报表下载
   * @param {*} params 
   * @returns {Promise}
   */
  UplodNaturalWagesFile(params) {
    return axios.post(`${serveUrl.cs}/IndividualIncome/UplodNaturalWagesFile?Year=${params.Year}&Month=${params.Month}&WageIds=${params.WageIds}`);
  },
  
  /**
   * @description 劳务报酬所得表下载
   * @param {*} params 
   * @returns {Promise}
   */
  UplodRemunerationFile(params) {
    return axios.post(`${serveUrl.cs}/IndividualIncome/UplodRemunerationFile?Year=${params.Year}&Month=${params.Month}&WageIds=${params.WageIds}`);
  },

};

export default individualTax;